package com.ai.mall.service.impl;

import com.ai.mall.dao.OrderCancellationReasonsDao;
import com.ai.mall.entity.OrderCancellationReasonsEntity;
import com.ai.mall.service.OrderCancellationReasonsService;
import com.ai.mall.utils.PageUtils;
import com.ai.mall.utils.Query;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("orderCancellationReasonsService")
public class OrderCancellationReasonsServiceImpl extends ServiceImpl<OrderCancellationReasonsDao, OrderCancellationReasonsEntity> implements OrderCancellationReasonsService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<OrderCancellationReasonsEntity> page = this.page(
                new Query<OrderCancellationReasonsEntity>().getPage(params),
                new QueryWrapper<OrderCancellationReasonsEntity>()
        );

        return new PageUtils(page);
    }

}